﻿using System;

namespace diantou.web.ajax.topics
{
    /// <summary>
    /// 教程操作
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true, IsAttribute = true, IsBaseTypeAttribute = true)]
    class tutorial : handle<tutorial, diantou.dataAccess.tutorialTopic>
    {
        /// <summary>
        /// 修改相关话题
        /// </summary>
        /// <param name="linkId"></param>
        /// <param name="topicIds"></param>
        /// <param name="onReturn"></param>
        public override void Rework(int linkId, int[] topicIds, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            if (currentUser.Permission == dataModel.user.permission.Admin) base.Rework(linkId, topicIds, onReturn);
            else onReturn(false);
        }
    }
}
